home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / doc / efun / execute_command < prev    next >
Text File  |  2000-03-24  |  960b  |  28 lines

  1. PRELIMINARY
  2. SYNOPSIS
  3.  
  4.         int execute_command (string command, object origin, object player)
  5.  
  6. DESCRIPTION
  7.         Low-level access to the command parser: take the <command>, parse it
  8.         into verb and argument and call the appropriate action added to
  9.         <origin>. For the execution of the function(s), this_player() is set
  10.         to player. The function also sets results of query_command() and
  11.         query_verb() to match the given <command>.
  12.  
  13.         The result is non-0 if the command was found and execute, and 0
  14.         otherwise.
  15.  
  16.         The efun raises a privilege violation ("execute_command",
  17.         this_object(), origin, command).
  18.  
  19.         Note that this function does not use the H_MODIFY_COMMAND
  20.         and H_NOTIFY_FAIL hooks; the notify_fail() efun is can be used,
  21.         but must be evaluated by the caller.
  22.  
  23. HISTORY
  24.         Introduced in LDMud 3.2.7
  25.  
  26. SEE ALSO
  27.         hooks(C), command(E), notify_fail(E), command_stack(E)
  28.